package org.example.wumeng.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.example.wumeng.pojo.BookCategory;

import java.util.List;
import java.util.Map;

/**
 * 医书分类Mapper
 */
@Mapper
public interface T_bookCategoryMapper extends BaseMapper<BookCategory> {

    /**
     * 获取医书分类统计（包含医书数量）
     */
    List<Map<String, Object>> getCategoryStatistics();
    List<Map<String, Object>> getBooksByCategory(String categoryName);
}
